package modele;

import java.util.List;
import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Transient;
import javax.persistence.Embeddable;

import org.codehaus.jackson.annotate.JsonIgnore;

/**
 * <p>Pojo mapping TABLE moduleprofil</p>
 * <p></p>
 *
 * <p>Generated at Mon Feb 28 11:28:58 CET 2011</p>
 * @author Salto-db Generator v1.0.16 / EJB3
 * 
 */
@Entity
@Table(name = "moduleprofil")
@SuppressWarnings("serial")
public class Moduleprofil implements Serializable {

	/**
	 * Attribute idModuleprofil.
	 */
	private Integer idModuleprofil;
	
	/**
	 * Attribute module
	 */
	 private Module module;	

	/**
	 * Attribute profil
	 */
	 private Profil profil;	

	/**
	 * Attribute r.
	 */
	private Integer r;
	
	/**
	 * Attribute c.
	 */
	private Integer c;
	
	/**
	 * Attribute u.
	 */
	private Integer u;
	
	/**
	 * Attribute d.
	 */
	private Integer d;
	
	private Integer idProfil;
	
	private Integer idModule;
	
	
	/**
	 * <p> 
	 * </p>
	 * @return idModuleprofil
	 */
	@Basic
	@Id
	@GeneratedValue
	@Column(name = "id_moduleprofil")
		public Integer getIdModuleprofil() {
		return idModuleprofil;
	}

	/**
	 * @param idModuleprofil new value for idModuleprofil 
	 */
	public void setIdModuleprofil(Integer idModuleprofil) {
		this.idModuleprofil = idModuleprofil;
	}
	
	/**
	 * get module
	 */
	@ManyToOne
	@JsonIgnore
	@JoinColumn(name = "id_module",insertable=false ,updatable=false)
	public Module getModule() {
		return this.module;
	}
	
	/**
	 * set module
	 */
	public void setModule(Module module) {
		this.module = module;
	}

	/**
	 * get profil
	 */
	@ManyToOne
	@JoinColumn(name = "id_profil",insertable=false ,updatable=false)
	@JsonIgnore
	public Profil getProfil() {
		return this.profil;
	}
	
	/**
	 * set profil
	 */
	public void setProfil(Profil profil) {
		this.profil = profil;
	}

	/**
	 * <p> 
	 * </p>
	 * @return r
	 */
	@Basic
	@Column(name = "r")
		public Integer getR() {
		return r;
	}

	/**
	 * @param r new value for r 
	 */
	public void setR(Integer r) {
		this.r = r;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return c
	 */
	@Basic
	@Column(name = "c")
		public Integer getC() {
		return c;
	}

	/**
	 * @param c new value for c 
	 */
	public void setC(Integer c) {
		this.c = c;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return u
	 */
	@Basic
	@Column(name = "u")
		public Integer getU() {
		return u;
	}

	/**
	 * @param u new value for u 
	 */
	public void setU(Integer u) {
		this.u = u;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return d
	 */
	@Basic
	@Column(name = "d")
		public Integer getD() {
		return d;
	}

	/**
	 * @param d new value for d 
	 */
	public void setD(Integer d) {
		this.d = d;
	}

	public void setIdProfil(Integer idProfil) {
		this.idProfil = idProfil;
	}

	@Basic
	@Column(name = "id_profil")
	public Integer getIdProfil() {
		return idProfil;
	}

	public void setIdModule(Integer idModule) {
		this.idModule = idModule;
	}

	@Basic
	@Column(name = "id_module")
	public Integer getIdModule() {
		return idModule;
	}
}